var api = {
  index: '/shop-impl-goods/index', // 首页
  category: '/shop-impl-goods/getTree', // 分类页
  login: '/shop-impl-member/weixin/login', //登陆请求
  sendSms: '/shop-impl-sms/sendSms', // 发送短信验证码
  register: '/shop-impl-member/Register', // 注册用户
  getUserByToken: '/shop-impl-member/web/index', // 根据token获取用户信息
  
  // 商品
  cateGoods: '/shop-impl-goods/getAllGoodsByCategory', // 根据分类获取商品列表
  search: '/shop-impl-goods/getAllGoodsByName', // 根据关键词搜索商品
  good: '/shop-impl-goods/getGoodsById', // 获取商品详情
  specification: '/shop-impl-goods/getSpeById', // 根据商品id获取规格

  // 购物车部分
  cart: '/shop-impl-goods/getCart', // 获取用户购物车列表
  car_add: '/shop-impl-goods/add', // 加入购物车
  car_chooseToggle: '/shop-impl-goods/choose', // 购物车-选中改变
  car_chooseAll: '/shop-impl-goods/ChooseAll', // 购物车-全选/全不选
  car_num: '/shop-impl-goods/Number', // 购物车商品数量-1 +1
  car_del: '/shop-impl-goods/deleteByIds', // 根据id删除商品

  // 收货地址部分
  address_get: '/shop-impl-member/getAddress', // 获取用户收货地址
  address_save: '/shop-impl-member/save', // 修改默认收货地址

  // 订单部分
  order_create: '/shop-impl-order/creat', // 生成订单
  order_list: '/shop-impl-order/getOrderList', // 获取订单列表
  order_detail: '/shop-impl-order/getOrderById', // 获取订单详情

  getInviteRules: '/shop-impl-member/getAllRules' // 获取邀请规则
}

module.exports = api